import Layout from "@/layout/index.vue";
import type { RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "root",
    component: Layout,
    redirect: { name: "complaintsList" },
    children: [
      {
        path: "complaintsList",
        name: "complaintsList",
        component: () => import("@/views/ComplaintsList/index.vue"),
        meta: {
          title: "投诉",
          noCache: true
        }
      },
      {
        path: "notice",
        name: "notice",
        component: () => import("@/views/ComplaintsList/notice.vue"),
        meta: {
          title: "投诉",
          noCache: true
        }
      },
      {
        path: "test",
        name: "test",
        component: () => import("@/views/ComplaintsList/test.vue"),
        meta: {
          title: "投诉",
          noCache: true
        }
      },
      {
        path: "info",
        name: "info",
        component: () => import("@/views/ComplaintsList/info.vue"),
        meta: {
          title: "投诉",
          noCache: true
        }
      },
      {
        path: "result",
        name: "result",
        component: () => import("@/views/ComplaintsList/result.vue"),
        meta: {
          title: "",
          noCache: true
        }
      }
    ]
  }
];

export default routes;
